package com.embhealth.dao;

import com.embhealth.pojo.User;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);
    public Page findAllUser(String queryString);
    public void addUser(User user);
    public void addRole4User(@Param("user_id")Integer uid,@Param("role_id")Integer rid);
    public User findById(Integer id);
    public void editUser(Map<String,Object> map);
    public void deleteUserRole(Integer uid);
    public void deleteUser(Integer uid);
}
